/**
 * Created by yaqiangbi on 2017/6/15.
 */
$(document).ready(function () {
    $("#message").click(function () {
        //alert("1111")
        $().message("Hello world");
    });
    function randomRange(ourMax,ourMin) {
        return Math.floor(Math.random()*(ourMax-ourMin+1))+ourMin;
    }
    console.log(randomRange(10,1));

    var testString = "There are 3 cats but 4 dogs.";
    var expression = /\d+/g;
    var digitCount = testString.match(expression);
    console.log(digitCount)
});